.class public Lcom/fiberhome/xloc/broadcast/LocalService;
.super Landroid/app/Service;


# instance fields
.field a:Landroid/os/PowerManager$WakeLock;

.field private final b:Landroid/os/IBinder;

.field private final c:I

.field private d:I

.field private e:Ljava/lang/String;

.field private f:Landroid/os/Handler;

.field private g:Z

.field private h:Lcom/fiberhome/xloc/c/b;

.field private i:J

.field private j:J

.field private k:J

.field private l:Ljava/util/ArrayList;

.field private m:Ljava/text/SimpleDateFormat;

.field private n:I

.field private o:Lcom/fiberhome/xloc/d/d;

.field private p:I

.field private q:Landroid/content/BroadcastReceiver;


# direct methods
.method public constructor <init>()V
    .locals 4

    const/4 v3, 0x0

    const/4 v2, 0x0

    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    new-instance v0, Lcom/fiberhome/xloc/broadcast/f;

    invoke-direct {v0, p0}, Lcom/fiberhome/xloc/broadcast/f;-><init>(Lcom/fiberhome/xloc/broadcast/LocalService;)V

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->b:Landroid/os/IBinder;

    const/4 v0, 0x3

    iput v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->c:I

    const v0, 0x2bf20

    iput v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    sget-object v0, Lcom/fiberhome/xloc/d/c;->a:Ljava/lang/String;

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->e:Ljava/lang/String;

    iput-object v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->a:Landroid/os/PowerManager$WakeLock;

    iput-object v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->f:Landroid/os/Handler;

    iput-boolean v3, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    const-wide/16 v0, 0x7530

    iput-wide v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->j:J

    const-wide/16 v0, 0x2710

    iput-wide v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->k:J

    iput-object v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->l:Ljava/util/ArrayList;

    const/4 v0, -0x1

    iput v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->n:I

    iput v3, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->p:I

    new-instance v0, Lcom/fiberhome/xloc/broadcast/d;

    invoke-direct {v0, p0}, Lcom/fiberhome/xloc/broadcast/d;-><init>(Lcom/fiberhome/xloc/broadcast/LocalService;)V

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->q:Landroid/content/BroadcastReceiver;

    return-void
.end method

.method static synthetic a(Lcom/fiberhome/xloc/broadcast/LocalService;I)I
    .locals 0

    iput p1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->n:I

    return p1
.end method

.method static synthetic a(Lcom/fiberhome/xloc/broadcast/LocalService;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->f:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic a(Lcom/fiberhome/xloc/broadcast/LocalService;Lcom/fiberhome/xloc/c/b;)Lcom/fiberhome/xloc/c/b;
    .locals 0

    iput-object p1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->h:Lcom/fiberhome/xloc/c/b;

    return-object p1
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/fiberhome/xloc/broadcast/e;

    invoke-direct {v0, p0}, Lcom/fiberhome/xloc/broadcast/e;-><init>(Lcom/fiberhome/xloc/broadcast/LocalService;)V

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->f:Landroid/os/Handler;

    return-void
.end method

.method private a(JI)V
    .locals 5

    const-wide/16 v0, 0x3e8

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sub-long v2, p1, v2

    cmp-long v4, v2, v0

    if-gez v4, :cond_0

    :goto_0
    const/4 v2, 0x1

    iput-boolean v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    invoke-static {v0, v1, p3, p0}, Lcom/fiberhome/xloc/broadcast/b;->a(JILandroid/content/Context;)V

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    return-void

    :cond_0
    move-wide v0, v2

    goto :goto_0
.end method

.method static synthetic a(Lcom/fiberhome/xloc/broadcast/LocalService;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 7

    const/16 v6, 0xf0

    const/4 v2, 0x0

    new-instance v0, Lcom/fiberhome/xloc/d/a;

    invoke-direct {v0}, Lcom/fiberhome/xloc/d/a;-><init>()V

    iput v2, v0, Lcom/fiberhome/xloc/d/a;->c:I

    invoke-static {p0}, Lcom/fiberhome/xloc/a/b;->a(Landroid/content/Context;)Lcom/fiberhome/xloc/a/b;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/fiberhome/xloc/a/b;->a(Lcom/fiberhome/xloc/d/a;)Ljava/util/ArrayList;

    move-result-object v3

    if-nez v3, :cond_0

    const-string/jumbo v0, "\u6ca1\u6709\u6570\u636e\u9700\u8981\u4e0a\u4f20"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    :cond_0
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v4

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v6}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->l:Ljava/util/ArrayList;

    add-int/lit8 v0, v4, -0x1

    move v1, v2

    :goto_0
    if-ge v1, v6, :cond_1

    sub-int v0, v4, v1

    add-int/lit8 v0, v0, -0x1

    if-gez v0, :cond_2

    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u4e0a\u4f20:\u6570\u636e\u6709"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->l:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "\u6761"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    new-instance v0, Lcom/fiberhome/xloc/b/a/a;

    const-string/jumbo v1, "0"

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v2

    iget-object v2, v2, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    invoke-direct {v0, v1, p1, v2}, Lcom/fiberhome/xloc/b/a/a;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->l:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/fiberhome/xloc/b/a/a;->a(Ljava/util/ArrayList;)V

    new-instance v1, Lcom/fiberhome/xloc/b/b;

    iget-object v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->f:Landroid/os/Handler;

    invoke-direct {v1, v2, v0}, Lcom/fiberhome/xloc/b/b;-><init>(Landroid/os/Handler;Lcom/fiberhome/xloc/b/a/h;)V

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    return-void

    :cond_2
    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/fiberhome/xloc/d/a;

    iget-object v5, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->l:Ljava/util/ArrayList;

    invoke-virtual {v5, v2, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method private a(Ljava/lang/String;I)V
    .locals 4

    invoke-static {p1}, Lcom/fiberhome/xloc/broadcast/b;->a(Ljava/lang/String;)J

    move-result-wide v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    add-long/2addr v0, v2

    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-eqz v2, :cond_0

    invoke-direct {p0, v0, v1, p2}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(JI)V

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/fiberhome/xloc/broadcast/LocalService;Ljava/lang/String;Lcom/fiberhome/xloc/b/a/d;)Z
    .locals 1

    invoke-direct {p0, p1, p2}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Ljava/lang/String;Lcom/fiberhome/xloc/b/a/d;)Z

    move-result v0

    return v0
.end method

.method static synthetic a(Lcom/fiberhome/xloc/broadcast/LocalService;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    return p1
.end method

.method private a(Ljava/lang/String;Lcom/fiberhome/xloc/b/a/d;)Z
    .locals 3

    const/4 v0, 0x1

    invoke-static {p1, v0}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v1

    packed-switch v1, :pswitch_data_0

    :goto_0
    :pswitch_0
    return v0

    :pswitch_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u4e0a\u4f20:\u4efb\u52a1\u65b0\u589e\u4fee\u6539\u524d\u914d\u7f6e\u6587\u4ef6"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v1

    invoke-virtual {v1}, Lcom/fiberhome/xloc/d/d;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    invoke-virtual {p2}, Lcom/fiberhome/xloc/b/a/d;->c()Lcom/fiberhome/xloc/d/c;

    move-result-object v1

    iget-object v1, v1, Lcom/fiberhome/xloc/d/c;->m:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    invoke-virtual {p2}, Lcom/fiberhome/xloc/b/a/d;->c()Lcom/fiberhome/xloc/d/c;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/fiberhome/xloc/d/d;->a(Lcom/fiberhome/xloc/d/c;)V

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u4e0a\u4f20:\u4efb\u52a1\u65b0\u589e\u4fee\u6539\u540e\u914d\u7f6e\u6587\u4ef6"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v1

    invoke-virtual {v1}, Lcom/fiberhome/xloc/d/d;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/xloc/d/d;->a()Z

    move-result v0

    goto :goto_0

    :pswitch_2
    const-string/jumbo v0, "\u4e0a\u4f20:\u4efb\u52a1\u5220\u9664\u6216\u8fc7\u671f"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    const-string/jumbo v1, ""

    iput-object v1, v0, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    const-string/jumbo v1, ""

    iput-object v1, v0, Lcom/fiberhome/xloc/d/d;->e:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    const-string/jumbo v1, ""

    iput-object v1, v0, Lcom/fiberhome/xloc/d/d;->d:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    new-instance v1, Lcom/fiberhome/xloc/d/c;

    invoke-direct {v1}, Lcom/fiberhome/xloc/d/c;-><init>()V

    invoke-virtual {v0, v1}, Lcom/fiberhome/xloc/d/d;->a(Lcom/fiberhome/xloc/d/c;)V

    :try_start_0
    invoke-static {p0}, Lcom/fiberhome/xloc/a/b;->a(Landroid/content/Context;)Lcom/fiberhome/xloc/a/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/xloc/a/b;->c()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/xloc/d/d;->a()Z

    move-result v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u4e0a\u4f20:\u6ce8\u9500\u540e\u914d\u7f6e\u6587\u4ef6"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v2

    invoke-virtual {v2}, Lcom/fiberhome/xloc/d/d;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    goto/16 :goto_0

    :catch_0
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u4e0a\u4f20:\u6e05\u9664\u4e0a\u4f20\u6570\u636e\u5e93\u5f02\u5e38:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    goto :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_2
    .end packed-switch
.end method

.method static synthetic b(Lcom/fiberhome/xloc/broadcast/LocalService;)I
    .locals 1

    iget v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->n:I

    return v0
.end method

.method private b()V
    .locals 3

    :try_start_0
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->a:Landroid/os/PowerManager$WakeLock;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->a:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->a:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->release()V

    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->a:Landroid/os/PowerManager$WakeLock;

    :cond_1
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->h:Lcom/fiberhome/xloc/c/b;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->h:Lcom/fiberhome/xloc/c/b;

    invoke-virtual {v0}, Lcom/fiberhome/xloc/c/b;->b()V

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->h:Lcom/fiberhome/xloc/c/b;

    invoke-virtual {v0}, Lcom/fiberhome/xloc/c/b;->c()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->h:Lcom/fiberhome/xloc/c/b;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_2
    :goto_0
    return-void

    :catch_0
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5173\u95ed:\u91ca\u653e\u8d44\u6e90\u5f02\u5e38 = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    goto :goto_0
.end method

.method static synthetic c(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/c/b;
    .locals 1

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->h:Lcom/fiberhome/xloc/c/b;

    return-object v0
.end method

.method static synthetic d(Lcom/fiberhome/xloc/broadcast/LocalService;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->e:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic e(Lcom/fiberhome/xloc/broadcast/LocalService;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->l:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic f(Lcom/fiberhome/xloc/broadcast/LocalService;)Lcom/fiberhome/xloc/d/d;
    .locals 1

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    return-object v0
.end method


# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 1

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->b:Landroid/os/IBinder;

    return-object v0
.end method

.method public onCreate()V
    .locals 12

    const-wide/16 v10, 0x0

    const/4 v3, 0x2

    const/4 v8, 0x1

    const-string/jumbo v0, "power"

    invoke-virtual {p0, v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/PowerManager;

    if-eqz v0, :cond_0

    const-class v1, Lcom/fiberhome/xloc/broadcast/LocalService;

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v8, v1}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object v0

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->a:Landroid/os/PowerManager$WakeLock;

    :cond_0
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->a:Landroid/os/PowerManager$WakeLock;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->a:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->acquire()V

    :cond_1
    const/4 v0, -0x1

    iput v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->n:I

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->q:Landroid/content/BroadcastReceiver;

    new-instance v1, Landroid/content/IntentFilter;

    const-string/jumbo v2, "android.intent.action.BATTERY_CHANGED"

    invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0, v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    invoke-static {p0}, Lcom/fiberhome/gaea/client/c/a;->b(Landroid/content/Context;)Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->a()Lcom/fiberhome/xloc/d/b;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/fiberhome/xloc/d/b;->a(Landroid/content/Context;)V

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    if-nez v0, :cond_2

    const-string/jumbo v0, "\u5173\u95ed:\u914d\u7f6e\u6587\u4ef6\u4e0d\u5b58\u5728"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/fiberhome/xloc/broadcast/b;->a(Landroid/content/Context;)V

    iput-boolean v8, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    :goto_0
    return-void

    :cond_2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u542f\u52a8:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    invoke-virtual {v1}, Lcom/fiberhome/xloc/d/d;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/d/k;->b()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v1, v1, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v1, v1, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, v1, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v1, v1, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, v1, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v1

    if-gez v1, :cond_4

    :cond_3
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5173\u95ed:\u8fc7\u671f,\u5f53\u524d\u65e5\u671f:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/fiberhome/xloc/broadcast/b;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iput-wide v10, v0, Lcom/fiberhome/xloc/d/d;->g:J

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    invoke-virtual {v0}, Lcom/fiberhome/xloc/d/d;->a()Z

    iput-boolean v8, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    goto :goto_0

    :cond_4
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v0, v0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    if-eqz v0, :cond_6

    iget-object v1, v0, Lcom/fiberhome/xloc/d/c;->f:Ljava/lang/String;

    const/4 v2, 0x3

    invoke-static {v1, v2}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v1

    iput v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    iget v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    if-gt v1, v3, :cond_5

    iput v3, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    :cond_5
    iget v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    const v2, 0xea60

    mul-int/2addr v1, v2

    iput v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    iget-object v0, v0, Lcom/fiberhome/xloc/d/c;->g:Ljava/lang/String;

    iput-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->e:Ljava/lang/String;

    :cond_6
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-wide v0, v0, Lcom/fiberhome/xloc/d/d;->g:J

    new-instance v2, Ljava/text/SimpleDateFormat;

    const-string/jumbo v3, "yyyy-MM-dd HH:mm:ss:SSS"

    invoke-direct {v2, v3}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    iput-object v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->m:Ljava/text/SimpleDateFormat;

    invoke-static {p0}, Lcom/fiberhome/xloc/d/b;->d(Landroid/content/Context;)I

    move-result v2

    iput v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->p:I

    iget v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->p:I

    sget v3, Lcom/fiberhome/xloc/d/b;->k:I

    if-eq v2, v3, :cond_b

    iget-wide v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    sub-long/2addr v2, v0

    iget v4, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    int-to-long v4, v4

    iget-wide v6, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->j:J

    add-long/2addr v4, v6

    cmp-long v2, v2, v4

    if-lez v2, :cond_8

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u5468\u671f:\u91cd\u8bbe(\u8d85\u671f):"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->m:Ljava/text/SimpleDateFormat;

    iget-wide v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    iget v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    int-to-long v0, v0

    invoke-static {v0, v1, p0}, Lcom/fiberhome/xloc/broadcast/b;->a(JLandroid/content/Context;)V

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-wide v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    iput-wide v2, v0, Lcom/fiberhome/xloc/d/d;->g:J

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    invoke-virtual {v0}, Lcom/fiberhome/xloc/d/d;->a()Z

    :goto_1
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v0, v0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v0, v0, Lcom/fiberhome/xloc/d/c;->h:Ljava/lang/String;

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v1, v1, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, v1, Lcom/fiberhome/xloc/d/c;->i:Ljava/lang/String;

    iget-object v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v2, v2, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v2, v2, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    iget-object v3, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v3, v3, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v3, v3, Lcom/fiberhome/xloc/d/c;->n:Ljava/util/ArrayList;

    iget-object v4, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v4, v4, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v4, v4, Lcom/fiberhome/xloc/d/c;->o:Ljava/util/ArrayList;

    invoke-static {v0, v1, v2, v3, v4}, Lcom/fiberhome/xloc/broadcast/b;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/util/ArrayList;)I

    move-result v0

    if-ltz v0, :cond_c

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/e;->a(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_7

    const-string/jumbo v0, "\u7f51\u7edc:\u5173\u95ed"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    :cond_7
    invoke-direct {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->a()V

    new-instance v0, Lcom/fiberhome/xloc/broadcast/c;

    invoke-direct {v0, p0}, Lcom/fiberhome/xloc/broadcast/c;-><init>(Lcom/fiberhome/xloc/broadcast/LocalService;)V

    invoke-virtual {v0}, Lcom/fiberhome/xloc/broadcast/c;->start()V

    :goto_2
    iput-boolean v8, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    goto/16 :goto_0

    :cond_8
    iget-wide v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    sub-long/2addr v2, v0

    iget v4, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    int-to-long v4, v4

    iget-wide v6, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->k:J

    sub-long/2addr v4, v6

    cmp-long v2, v2, v4

    if-gez v2, :cond_a

    iget-wide v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    cmp-long v0, v2, v0

    if-gez v0, :cond_9

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u5468\u671f:\u91cd\u8bbe(\u65f6\u95f4\u9519\u8bef):"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->m:Ljava/text/SimpleDateFormat;

    iget-wide v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    iget v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    int-to-long v0, v0

    invoke-static {v0, v1, p0}, Lcom/fiberhome/xloc/broadcast/b;->a(JLandroid/content/Context;)V

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-wide v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    iput-wide v2, v0, Lcom/fiberhome/xloc/d/d;->g:J

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    invoke-virtual {v0}, Lcom/fiberhome/xloc/d/d;->a()Z

    goto/16 :goto_1

    :cond_9
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "\u5468\u671f:\u4efb\u52a1\u672a\u5230\u5173\u95ed:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->m:Ljava/text/SimpleDateFormat;

    iget-wide v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    iput-boolean v8, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    goto/16 :goto_0

    :cond_a
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "\u5468\u671f:\u6b63\u5e38:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->m:Ljava/text/SimpleDateFormat;

    iget-wide v4, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/text/SimpleDateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget v3, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    int-to-long v4, v3

    add-long/2addr v0, v4

    iput-wide v0, v2, Lcom/fiberhome/xloc/d/d;->g:J

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    invoke-virtual {v0}, Lcom/fiberhome/xloc/d/d;->a()Z

    goto/16 :goto_1

    :cond_b
    const-string/jumbo v0, "\u7acb\u5373\u5b9a\u4f4d"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    goto/16 :goto_1

    :cond_c
    const-string/jumbo v1, "\u5173\u95ed:\u4e0d\u5728\u65f6\u95f4\u6bb5,\u91cd\u8bbe"

    invoke-static {v1}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    const/4 v1, -0x2

    if-ne v0, v1, :cond_d

    invoke-static {p0}, Lcom/fiberhome/xloc/broadcast/b;->b(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_d

    new-instance v0, Lcom/waiqin365/lightwork/tracker/c/a/a;

    sget v1, Lcom/waiqin365/lightwork/tracker/c/a/a;->e:I

    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-direct {v0, p0, v1, v2}, Lcom/waiqin365/lightwork/tracker/c/a/a;-><init>(Landroid/content/Context;ILjava/util/Date;)V

    new-instance v1, Lcom/waiqin365/lightwork/tracker/c/b;

    const/4 v2, 0x0

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightwork/tracker/c/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightwork/tracker/c/a/b;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightwork/tracker/c/b;->start()V

    :cond_d
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iget-object v0, v0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v0, v0, Lcom/fiberhome/xloc/d/c;->i:Ljava/lang/String;

    if-eqz v0, :cond_e

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v2, 0x8

    if-ne v1, v2, :cond_e

    invoke-static {p0}, Lcom/fiberhome/xloc/broadcast/b;->a(Landroid/content/Context;)V

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    iput-wide v10, v1, Lcom/fiberhome/xloc/d/d;->g:J

    iget-object v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->o:Lcom/fiberhome/xloc/d/d;

    invoke-virtual {v1}, Lcom/fiberhome/xloc/d/d;->a()Z

    iget v1, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    invoke-direct {p0, v0, v1}, Lcom/fiberhome/xloc/broadcast/LocalService;->a(Ljava/lang/String;I)V

    iput-boolean v8, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    goto/16 :goto_0

    :cond_e
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5173\u95ed:\u65f6\u95f4\u683c\u5f0f\u6709\u95ee\u9898:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/fiberhome/xloc/broadcast/b;->a(Landroid/content/Context;)V

    iput-boolean v8, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    goto/16 :goto_2
.end method

.method public onDestroy()V
    .locals 3

    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->q:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    :try_start_0
    invoke-static {}, Lcom/fiberhome/xloc/d/b;->d()Lcom/fiberhome/xloc/d/d;

    move-result-object v0

    invoke-static {}, Lcom/fiberhome/gaea/client/d/k;->b()Ljava/lang/String;

    move-result-object v1

    if-eqz v0, :cond_0

    iget-object v2, v0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    if-eqz v2, :cond_0

    iget-object v2, v0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v2, v2, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-eqz v2, :cond_0

    iget-object v0, v0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v0, v0, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v0

    if-gez v0, :cond_1

    :cond_0
    const-string/jumbo v0, "\u5173\u95ed:\u4efb\u52a1\u8fc7\u671f\n"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    :try_start_1
    invoke-static {p0}, Lcom/fiberhome/xloc/a/b;->a(Landroid/content/Context;)Lcom/fiberhome/xloc/a/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/xloc/a/b;->b()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :goto_1
    :try_start_2
    iget-object v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->q:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    :goto_2
    invoke-direct {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->b()V

    invoke-super {p0}, Landroid/app/Service;->onDestroy()V

    return-void

    :cond_1
    :try_start_3
    iget-boolean v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    const/4 v1, 0x1

    if-eq v0, v1, :cond_2

    const-string/jumbo v0, "\u5173\u95ed:\u975e\u4e3b\u52a8\u9000\u51fa,\u9700\u8981\u91cd\u542f\u4efb\u52a1\n"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    new-instance v0, Landroid/content/Intent;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v2

    iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "com.fiberhome.xloc.location"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->sendBroadcast(Landroid/content/Intent;)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5173\u95ed:\u5b9a\u4f4d\u670d\u52a1ondestroy\u5f02\u5e38:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ",\u91cd\u542f\u4efb\u52a1"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    new-instance v0, Landroid/content/Intent;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v2

    iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "com.fiberhome.xloc.location"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->sendBroadcast(Landroid/content/Intent;)V

    goto/16 :goto_0

    :cond_2
    :try_start_4
    const-string/jumbo v0, "\u5173\u95ed:\u4e3b\u52a8\u9000\u51fa,\u4e0d\u91cd\u542f\n"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    goto/16 :goto_0

    :catch_1
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5173\u95ed:\u5b9a\u4f4d\u6570\u636e\u5e93\u5173\u95ed\u5f02\u5e38 = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    goto/16 :goto_1

    :catch_2
    move-exception v0

    goto/16 :goto_2
.end method

.method public onStartCommand(Landroid/content/Intent;II)I
    .locals 5

    const/4 v4, 0x1

    iget v0, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->p:I

    sget v1, Lcom/fiberhome/xloc/d/b;->k:I

    if-ne v0, v1, :cond_0

    sget v0, Lcom/fiberhome/xloc/d/b;->l:I

    invoke-static {p0, v0}, Lcom/fiberhome/xloc/d/b;->a(Landroid/content/Context;I)V

    :cond_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    invoke-static {p0, v0, v1}, Lcom/fiberhome/xloc/d/b;->a(Landroid/content/Context;J)V

    iget-wide v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->i:J

    sub-long/2addr v0, v2

    iget v2, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->d:I

    int-to-long v2, v2

    cmp-long v0, v0, v2

    if-lez v0, :cond_1

    const-string/jumbo v0, "\u5173\u95ed:\u670d\u52a1\u5047\u6b7b\u91cd\u542f\u670d\u52a1"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    iput-boolean v4, p0, Lcom/fiberhome/xloc/broadcast/LocalService;->g:Z

    new-instance v0, Landroid/content/Intent;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v2

    iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "com.fiberhome.xloc.location"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/fiberhome/xloc/broadcast/LocalService;->sendBroadcast(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/fiberhome/xloc/broadcast/LocalService;->stopSelf()V

    :cond_1
    return v4
.end method
